export class Page<T> {
  constructor(
    items: Array<T> = [],
    pageCount = 0,
    pageIndex = 1,
    pageSize = 10,
    itemCount = 0,
    extras: Array<any> = []
  ) {
    this.items = items;
    this.pageCount = pageCount;
    this.pageIndex = pageIndex;
    this.pageSize = pageSize;
    this.itemCount = itemCount;
    this.extras = extras;
  }

  items: Array<T>;
  pageCount: number;
  pageIndex: number;
  pageSize: number;
  itemCount: number;
  extras: Array<any>;
}
